package com.hzdl.car.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;

public class Car implements Serializable {
    private String carNumber;
    private String carType;
    private String color;
    private BigDecimal price;
    private BigDecimal rentPrice;
    private BigDecimal deposit;
    private Integer isrenting;
    private  String description;
    private  String carimg;
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss",timezone ="GMT+8" )
    private String createTime;

    @Override
    public String toString() {
        return "Car{" +
                "carNumber='" + carNumber + '\'' +
                ", carType='" + carType + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                ", rentPrice=" + rentPrice +
                ", deposit=" + deposit +
                ", isrenting=" + isrenting +
                ", description='" + description + '\'' +
                ", carimg='" + carimg + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getRentPrice() {
        return rentPrice;
    }

    public void setRentPrice(BigDecimal rentPrice) {
        this.rentPrice = rentPrice;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public Integer getIsrenting() {
        return isrenting;
    }

    public void setIsrenting(Integer isrenting) {
        this.isrenting = isrenting;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCarimg() {
        return carimg;
    }

    public void setCarimg(String carimg) {
        this.carimg = carimg;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
